﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace kim.Web
{
    public partial class postgraduate : kim.UI.BasePage
    {
        protected string ImgUrl, strTet;
        protected string[] htmltext = new string[10];
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                BindInfo();
                GetSlide();
            }
        }
        private void GetSlide()
        {
            List<Model.Show> slideList = base.GetSlide(3, 1, 6);
            int i = 0;
            if (slideList.Count > 0)
            {
                foreach (Model.Show mo in slideList)
                {
                    htmltext[i] = "<a href=\"#\" class=\"mainBanner\" title=\"" + mo.Title + "\"> <img src=\"" + mo.Pic + "\" alt=\"" + mo.Title + "\" /></a>";

                    i++;

                }
            }
        }
        private void BindInfo()
        {
            rptCjwt.DataSource = new BLL.eg_news().GetModelList(8, "ClassID=1 and ChannelID=1", "Sort Desc");
            rptCjwt.DataBind();


            topMenu.DataSource = base.GetTopClass(10, 4);
            topMenu.DataBind();
            rptXxzs.DataSource = new BLL.eg_news().GetModelList(20, "ClassID=2 and ChannelID=6", "Sort Desc");
            rptXxzs.DataBind();
           
            rptZszs.DataSource = new BLL.eg_news().GetModelList(8, "ClassID=1 and ChannelID=6", "Sort Desc");
            rptZszs.DataBind();


        }
    }
}